﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InCom.Core.TerminalSend
{
    using InCom.Entities.ProtocolEntity;
    using InCom.SyncStatus;
    /// <summary>
    /// 从incom发送到 其它数据同步节点的数制实体
    /// </summary>
    public class RealDataToSyncPointEntity
    {
        /// <summary>
        /// 终端编号,如果不是与终端交互的指令则此字段无效
        /// </summary>
        public uint TerminalCode { get; set; }


        /// <summary>
        /// 用于发送的实时数据实体
        /// </summary>
        public RealtimeUpEntity Protocol { get; set; }


        /// <summary>
        /// 对像池
        /// </summary>
        public InCom.Utilities.Pool.IPool Pool
        {
            get;
            set;
        }

        /// <summary>
        /// 需要转发的节点
        /// </summary>
        internal Dictionary<string, SyncPoint> Transmission { get; set; }

        /// <summary>
        /// 设置需要发送的数据
        /// </summary>
        public byte[] ToSendBytes { get; set; }

        /// <summary>
        /// 这条指令是需要发到何数据同步节点的
        /// </summary>
        public SyncPoint SyncPoint { get; set; }
    }
}
